package com.fasteat.menu.mapper;

import com.fasteat.menu.entity.ReportMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author run
 * @since 2021-01-19
 */
public interface ReportMessageMapper extends BaseMapper<ReportMessage> {

    @Select("SELECT DISTINCT(menu_id) FROM t_menu_report tmr INNER JOIN t_menu_info tmi ON tmr.menu_id = tmi.id AND menu_title LIKE #{keyword}")
    public List<String> getMenuIdOfKeyword(String keyword);
}
